package com.xul.yygh.hosp.repository;

import model.com.xul.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author xul
 * @create 2021-07-10 22:02
 */
@Repository
public interface HospitalRepository extends MongoRepository<Hospital, String> {

    /**
     * 根据Hoscode查询Hospital信息
     *
     * @param hoscode
     * @return
     */
    Hospital getHospitalByHoscode(String hoscode);

    /**
     * 根据医院名称经行模糊查询
     *
     * @param hosname
     * @return
     */
    List<Hospital> findHospitalByHosnameLike(String hosname);
}
